package com.sise.序列化;

import java.io.Serializable;

/**
 * 作者：idea
 * 日期：2018/6/27
 * 描述：
 */
public class Pig implements Serializable {
    public int id;
    public String name;
    public transient int weight;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Pig{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", weight=" + weight +
                '}';
    }
}
